package com.itheima.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Goods;
import entity.PageResult;
import entity.Result;

import java.util.Map;

public interface GoodsService extends IService<Goods> {
    PageResult findPage(Integer page, Integer size, Map<String, String> searchMap);

    Result buy(Long id, Integer buyNum);
}
